﻿@model Qu.SeniorProject.Model.ProjectSummary

@{
    ViewBag.Title = "Project Details";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


<h2>Project Details</h2>

<table>
    <tr>
        <td style="font-weight:bold;" width="160px">ProjectID:</td>
        <td >
            @Html.DisplayFor(model => model.ProjectID)
        </td>

        <td style="font-weight:bold;" width="50px">Year:</td>
        <td >
            @Html.DisplayFor(model => model.ProjectYear)
        </td>
    </tr>

    <tr>
        <td style="font-weight:bold;">Title:</td>
        <td  colspan='3'>
            @Html.DisplayFor(model => model.Title)
        </td>
    </tr>

    <tr><td style="font-weight:bold;" colspan='4'>Abstract:</td></tr>
    <tr>
        <td  colspan='4'>
            @Html.Raw(Model.Abstract)
        </td>
    </tr>

    <tr>
        <td style="font-weight:bold;">Students:</td>
        <td >
            @Html.Raw(Model.Students)
        </td>

        <td style="font-weight:bold;" width="50px">Gender:</td>
        <td >
            @Html.DisplayFor(model => model.Gender)
        </td>
    </tr>

    <tr>
        <td style="font-weight:bold;">Supervisors:</td>
        <td  colspan='3'>
             @Html.Raw(Model.Supervisors)
        </td>
     </tr>


       @if (Model.PresentationDateTime != null && !string.IsNullOrEmpty(Model.PresentationRoom)
                    && Model.PresentationDateTime >= DateTime.Now.AddDays(-1)
                    && Model.PresentationDateTime.Value.AddDays(-6) <= DateTime.Now)
        {
           <tr>
                    <td colspan='2'>
                         <b>Presentation Time:</b> @Model.PresentationDateTime.Value.ToString("dd/MM/yyyy hh:mm tt") <b> at </b> @Model.PresentationRoom
                         <br />
                         @if (Model.PosterTime != null)
                         {
                            <b>Poster and Demo Time:</b> @Model.PosterTime <b> at </b> @Model.PosterVenue
                         }
                    </td>
               
                @if (!string.IsNullOrEmpty(Model.Examiners))
                {
                    <td  colspan='2'>
                        <b>Examiners: </b>@Html.Raw(Model.Examiners)
                    </td>
                }
                else
                    if (!string.IsNullOrEmpty(Model.ProposalExaminer))
                    {
                    <td  colspan='2'>
                        <b>Examiner: </b>@Html.Raw(Model.ProposalExaminer)
                    </td>
                    } 
          </tr>
    }

    
    @if (!string.IsNullOrEmpty(Model.ProjectTasks))
    {
        <tr><td style="font-weight:bold;" colspan='4'>Project Tasks:</td></tr>
        <tr><td  colspan='4'>
            @Html.Raw(Model.ProjectTasks)
        </td></tr>
    }
        
    @if (!string.IsNullOrEmpty(Model.SkillsRequired))
    {
        <tr><td style="font-weight:bold;" colspan='4'>Skills Required:</td></tr>
        <tr><td colspan='4'>
           @Html.Raw(Model.SkillsRequired)
        </td></tr>
    }

    @if (!string.IsNullOrEmpty(Model.ResourcesNeeded))
    {
        <tr><td style="font-weight:bold;" colspan='4'>Resources Needed:</td></tr>
        <tr><td  colspan='4'>
           @Html.Raw(Model.ResourcesNeeded)
        </td></tr>
    }
</table>

<br />
<a href="#" onClick="history.go(-1); return false;">Back</a> 
@*<p>
    @Html.ActionLink("Back to Home", "Index")
</p>*@
